﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;
using DAL;

namespace BLL
{
    public class AwardService
    {
        private AwardsDAL awardDAL = new AwardsDAL();

        public void CreateAward(BoAwards award)
        {
            awardDAL.Insert(award);
        }

        public void UpdateAward(BoAwards award)
        {
            awardDAL.Update(award);
        }

        public void DeleteAward(BoAwards award)
        {
            awardDAL.Delete(award.AWA_ID);
        }

        public BoAwards GetAward(string id)
        {
            return awardDAL.GetModel(id);
        }

        public IList<BoAwards> GetAllAwards()
        {
            return awardDAL.GetAllAwards();
        }

        /// <summary>
        /// 得到校内奖项
        /// </summary>
        /// <returns></returns>
        public IList<BoAwards> GetInnerAwards()
        {
            return awardDAL.GetInnerAwards();
        }
    }
}
